import request, {formRequest} from '@/utils/request';
import { baseUrl } from '@/utils/settings';

export async function selCountByCurrentUser(param) {
    return request(baseUrl + 'count/selCountByCurrentUser',{ method:'post', data: param.payload}, param.type);
}

export async function selCountErrByCurrentUser(param) {
    return request(baseUrl + 'count/selCountErrByCurrentUser',{ method:'post', data: param.payload}, param.type);
}
  
export async function selCountByUserId(param) {
    return request(baseUrl + 'count/selCountByUserId',{ method:'post', data: param.payload}, param.type);
}

export async function selCountErrByUserId(param) {
    return request(baseUrl + 'count/selCountErrByUserId',{ method:'post', data: param.payload}, param.type);
}

export async function selTotalByCurrentUser(param) {
    return request(baseUrl + 'count/selTotalByCurrentUser',{ method:'post', data: param.payload}, param.type);
}

export async function selTotalByUserId(param) {
    return request(baseUrl + 'count/selTotalByUserId',{ method:'post', data: param.payload}, param.type);
}

// export async function selShortAndLongTotalAll(param){
//     return request(baseUrl + 'count/selShortAndLongTotalAll',{ method:'get', data: {}}, param.type);
// }

// export async function selShortAndLongTotalByCurrentUser(param){
//     return request(baseUrl + 'count/selShortAndLongTotalByCurrentUser',{ method:'get', data: {}}, param.type);
// }